//
//  FirstAuditingDetailListCell.m
//  优学荟管理系统
//
//  Created by 星道 on 17/7/11.
//  Copyright © 2017年 星道三好. All rights reserved.
//

#import "FirstAuditingDetailListCell.h"

@implementation FirstAuditingDetailListCell
{
    IBOutlet UILabel *_Time;
    IBOutlet UILabel *_Username;
    IBOutlet UILabel *_TradeNo;
    IBOutlet UILabel *_Price;
    IBOutlet UILabel *_PayType;
}


- (void)setModel:(FirstAuditingDetailListModel *)Model
{
    _Model = Model;
    _Time.text = Model.tradeTime;
    _Username.text = Model.username;
    _TradeNo.text = Model.tradeNo;
    _Price.text = [NSString stringWithFormat:@"￥%.2f",[Model.actualPaid doubleValue]];
    //  支付渠道  1支付宝2微信
    _PayType.text = [Model.payType isEqualToNumber:@1]?@"(支付宝)":@"(微信)";


    /** 0资金 1星币 */
    if (self.Type == 0)
    {
        _Price.text = [NSString stringWithFormat:@"￥%.2f",[Model.actualPaid doubleValue]];
    }
    else if (self.Type == 1)
    {
        _Price.text = [NSString stringWithFormat:@"￥%@",[Model.coins stringValue]];

    }
}

@end
